package com.sunshine.lnuplusweb.service.Impl;

import com.sunshine.lnuplusweb.dao.WhatToDo2021Mapper;
import com.sunshine.lnuplusweb.entities.WhatToDo2021;
import com.sunshine.lnuplusweb.service.WhatToDo2021Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WhatToDo2021ServiceImpl implements WhatToDo2021Service {

    @Resource
    private WhatToDo2021Mapper whatToDo2021Mapper;

    @Override
    public List<WhatToDo2021> getAll() {
        return whatToDo2021Mapper.getAll();
    }

    @Override
    public List<String> getAllContent() {
        return whatToDo2021Mapper.getAllContent();
    }

    @Override
    public void insert(String userId, String content) {
        whatToDo2021Mapper.insert(userId, content);
    }
}
